package com.taobao.livis.ch01;

public class TestSleep {
	public static void main(String[] args) {
		String[] text = {"a","b","c","d"};
		long start = System.nanoTime();
		for(int i=0;i<text.length;i++){
			System.out.println(text[i]);
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		long end = System.nanoTime();
		System.out.println("costTime="+(end-start)/1000000+"ms");
	}
}
